package com.winit.openapi.chinapost.model;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class EventBody {

    /**
     * 订单对象
     */
    private Order           order;

    // private List<Order> order;

    /**
     * 国内运单号
     */
    private String          mailNo;

    /**
     * 物流订单号
     */
    private String          orderCode;

    /**
     * 说明备注
     */
    private String          remark;

    /**
     * 国内快递公司ID
     */
    private Long            domesticExpressId;

    /**
     * 国内快递公司Code
     */
    private String          domesticExpressCode;

    /**
     * 国内快递公司名中文简称
     */
    private String          domesticExpressName;

    /**
     * 0不用上门揽收，1需要上门揽收
     */
    private Integer         doorPickup;

    /**
     * 交易号
     */
    private Long            tradeId;

    /**
     * 发货时间
     */
    private String          orderCreateTime;

    /**
     * 扩展字段，以key=valued的格式，中间用分号隔开
     */
    private String          extendFields;

    /**
     * 物流详细信息对象
     */
    private LogisticsDetail logisticsDetail;

    /**
     * 客户地址信息
     * 
     * @return
     */
    private Customer        customer;

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public String getMailNo() {
        return mailNo;
    }

    public void setMailNo(String mailNo) {
        this.mailNo = mailNo;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getDomesticExpressId() {
        return domesticExpressId;
    }

    public void setDomesticExpressId(Long domesticExpressId) {
        this.domesticExpressId = domesticExpressId;
    }

    public String getDomesticExpressCode() {
        return domesticExpressCode;
    }

    public void setDomesticExpressCode(String domesticExpressCode) {
        this.domesticExpressCode = domesticExpressCode;
    }

    public String getDomesticExpressName() {
        return domesticExpressName;
    }

    public void setDomesticExpressName(String domesticExpressName) {
        this.domesticExpressName = domesticExpressName;
    }

    public Integer getDoorPickup() {
        return doorPickup;
    }

    public void setDoorPickup(Integer doorPickup) {
        this.doorPickup = doorPickup;
    }

    public Long getTradeId() {
        return tradeId;
    }

    public void setTradeId(Long tradeId) {
        this.tradeId = tradeId;
    }

    public String getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(String orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public String getExtendFields() {
        return extendFields;
    }

    public void setExtendFields(String extendFields) {
        this.extendFields = extendFields;
    }

    public LogisticsDetail getLogisticsDetail() {
        return logisticsDetail;
    }

    public void setLogisticsDetail(LogisticsDetail logisticsDetail) {
        this.logisticsDetail = logisticsDetail;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    /*
     * @XmlElementWrapper(name="orders")
     * @XmlElement public List<Order> getOrder() { return order; } public void
     * setOrder(List<Order> order) { this.order = order; }
     */

}
